package cn.cmcc.online.smsapi.ui.model;

import android.graphics.Color;

import org.json.JSONObject;

/**
 * Created by ZhangYifan on 2017/6/21.
 */

public class VerificationCodeData {
    private int color;
    private String highInfoTtile;
    private String highInfoValue;
    private String mainInfo;
    private String tip;

    public VerificationCodeData(JSONObject obj) {
        color= Color.parseColor(obj.optString("title_color"));
        JSONObject data=obj.optJSONObject("data");
        highInfoTtile=data.optString("high_info_title");
        highInfoValue=data.optString("high_info_value");
        mainInfo=data.optString("main_info_data");
        tip=data.optString("extra_info_tip");
    }

    public int getColor() {
        return color;
    }

    public String getHighInfoTtile() {
        return highInfoTtile;
    }

    public String getHighInfoValue() {
        return highInfoValue;
    }

    public String getMainInfo() {
        return mainInfo;
    }

    public String getTip() {
        return tip;
    }
}
